# 新建一个文件，定义一个计算类,有两个属性,数字1,数字2,具有 加 减 乘 除 方法

class Count:
    code = input('输入您想要的功能[+ - * /]:')
    def __init__(self,num1,num2):
        self.num1 = num1
        self.num2 = num2
    if code == '+':
        def add(self):
            num = self.num1 + self.num2
            print(num)

    if code == '-':
        def cut(self):
            num = self.num1 - self.num2
            print(num)
    if code == '*':
        def mul(self):
            num = self.num1 * self.num2
            print(num)
    if code == '/':
        def div(self):
            num = self.num1 / self.num2
            print(num)



count1 = Count(9,3)
#进行函数调用
count1.add()
# count1.cut()
# count1.mul()
# count1.div()